import request from '@/utils/request'

// 查询用户信誉分明细列表
export function listCreditScoreDetail(query) {
  return request({
    url: '/biz/creditScoreDetail/list',
    method: 'get',
    params: query
  })
}

// 查询用户信誉分明细详细
export function getCreditScoreDetail(id) {
  return request({
    url: '/biz/creditScoreDetail/' + id,
    method: 'get'
  })
}

// 新增用户信誉分明细
export function addCreditScoreDetail(data) {
  return request({
    url: '/biz/creditScoreDetail',
    method: 'post',
    data: data
  })
}

// 修改用户信誉分明细
export function updateCreditScoreDetail(data) {
  return request({
    url: '/biz/creditScoreDetail',
    method: 'put',
    data: data
  })
}

// 删除用户信誉分明细
export function delCreditScoreDetail(id) {
  return request({
    url: '/biz/creditScoreDetail/' + id,
    method: 'delete'
  })
}
